<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>a 标签链接伪类示例</title>
</head>
<body>
  <style>
    body {
      width: 300px;
      margin: 0 auto;
      font-size: 1.2rem;
      font-family: sans-serif;
    }
    p {
      line-height: 1.4; /* 文字行高 */
    }
    a {
      /* 取消轮廓 */
      outline: none;
      /* 取消下划线  */
      text-decoration: none;
      padding: 2px 1px 0;
    }
    
    a:link {
      color: lightblue;
    }
    a:visited {
      color: #437a16;
    }
    a:focus {
      border-bottom: 1px dashed;
      background: lilightcyan;
    }
    a:hover {
      border-bottom: 1px solid;
      background: aliceblue;
    }
    a:active {
      background: #265301;
      color: #cdfeaa;
    }
    </style>
    <p>
      当前主流的几种浏览器，例如
      <a href="https://www.mozilla.org/zh-CN/firefox/">Mozilla Firefox</a>,
      <a href="https://www.google.com/chrome/index.html">Google Chrome</a>, 和
      <a href="https://www.microsoft.com/zh-CN/windows/microsoft-edge"
        >Microsoft Edge</a
      >.
    </p>
</body>
</html>